import { axios as request } from '@/utils/request'

// 根据表单Id和流程Id获取表单数据
export function getInfoById(params) {
  return request({
    url: `/form/get`,
    method: 'get',
    params
  })
}

// 保存表单数据
export function save(data) {
  return request({
    url: `/form/save`,
    method: 'post',
    data
  })
}

// 计算值字段的值
export function calculateValue(data) {
  return request({
    url: `/form/calculateValue`,
    method: 'post',
    data
  })
}

// 获取明细表的辅助决策数据
export function decisionSupport(data) {
  return request({
    url: `/form/decisionSupport`,
    method: 'post',
    data
  })
}
